home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet multimedia / Animacje, filmy i prezentacje / Modelowanie 3D / K-3D 0.6.5.0 / k3d-all-in-one-setup-0.6.5.0.exe / k3d-setup-0.6.5.0.exe / share / shaders / k3d_constants.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-03-13  |  667 b   |  23 lines

  1. /* k3d_constants.h
  2.  *  various constants or "magic" numbers
  3.  * see http://en.wikipedia.org/wiki/Mathematical_constant
  4.  *  2006-03-13 dan@3-e.net
  5.  *
  6.  * need to check the max number of digits.
  7.  * need to make case of names uniform.
  8.  * Some of these may be in a Math.h else where...
  9.  */
  10.  
  11.  
  12. #define M_E 2.7182818284590452354    /* e, euler's number */
  13. #define Euler 0.57721566490153286060651209008240243 /* Y, Euler-Mascheroni constant */
  14.  
  15. #define GoldenRatio  1.61803398874989484820458683436563811  /* the Golden Ratio */
  16.  
  17. #define Pi 3.14159265358979323846264338327950288 /* Pi , Archimedes' constant or Ludolph's number */
  18. #define TWOPI (2*Pi)
  19.  
  20. #define VERY_SMALL 0.0001
  21.  
  22.  
  23.